package demo1;

public class Test {
    public static void drawMap(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        Shape shape=new Rect();
        Shape shape1=new Cycle();
        drawMap(shape);
        drawMap(shape1);

    }
}
